import {ILogHelper} from "../../src/Base/Log/ILogHelper";
import {GameFrameworkLogLevel} from "../../src/Base/Log/GameFrameworkLogLevel";
import ccclass = cc._decorator.ccclass;
@ccclass("DefaultLogHelper")
export class DefaultLogHelper implements ILogHelper{
    Log(level: GameFrameworkLogLevel, message: any): void {
        switch (level)
        {
            case GameFrameworkLogLevel.Debug:
                cc.log(message)
                break;
            case GameFrameworkLogLevel.Info:
                cc.log(message)
                break;
            case GameFrameworkLogLevel.Warning:
                cc.warn(message);
                break;
            case GameFrameworkLogLevel.Error:
                cc.error(message);
                break;
            default:
                throw new Error(message);
        }


    }

}